console.log(process.argv);

process.stdin.on('data', function(data) { 
    process.stdout.write('read from console: ' + data.toString());
});